var ws = new WebSocket("ws://192.168.40.1:2014/") ;
alert(1);
ws.onopen = function()
{
alert( "opened" ) ;
ws.send( "I'm client" ) ;
};

ws.onmessage=function(evt)
{
alert(evt.data) ;
};

ws.onclose=function()
{
alert( "closed" ) ;
};


